const koaRouter = require('@koa/router')
const { create, remove, update, get, getList } = require('../controller/honorController')
const { verifAuth } = require('../middleware/login.middleware')

const honorRouter = new koaRouter({ prefix: '/honor' })
// 增加
honorRouter.post('/', verifAuth, create)
// // 查
honorRouter.get('/:id', get)
honorRouter.get('/', getList)
// // 改
honorRouter.post('/:id', verifAuth, update)
// // 删
honorRouter.delete('/:id', verifAuth, remove)
module.exports = honorRouter
